package graph;

import java.util.Date;

public class TimeSaver {
    private final Date date;
    public int day;
    public int month;
    public int year;
    public int hour;
    public int min;
    public int sec;
    public double rate;
    public long amount;

    public TimeSaver(double rate, long amount) {
        date = new Date();
        this.rate = rate;
        this.amount = amount;
        year = date.getYear();
        month = date.getMonth();
        day = date.getDay();
        hour = date.getHours();
        min = date.getMinutes();
        sec = date.getSeconds();
    }

    public int getDay() {
        return day;
    }

    public int getMonth() {
        return month;
    }

    public int getYear() {
        return year;
    }

    public int getHour() {
        return hour;
    }

    public int getMin() {
        return min;
    }

    public int getSec() {
        return sec;
    }

    public double getRate() {
        return rate;
    }

    public long getAmount() {
        return amount;
    }

}
